<template>
  <div id="loginLayout" :class="['user-layout-wrapper', device]">
    <div class="mask-bg">
      <div class="layout-center">
        <a href="/" class="logo-box">
          <img src="~@/assets/logo.png" class="logo" alt="logo">
          <span class="title">{{systemName}}</span>
        </a>
        <div class="con">
          <route-view></route-view>
        </div>
      </div>
    </div>

<!--    <div class="top">
      <div class="header">
        <a href="/">
          <img src="~@/assets/logo.png" class="logo" alt="logo">
          <span class="title">{{systemName}}</span>
        </a>
      </div>
      <div class="desc">

      </div>
    </div>
    <div class="container">
      <route-view></route-view>
    </div>-->
    <div class="footer">
      <!--        <div class="links">
                <a href="http://jeecg-boot.mydoc.io" target="_blank">帮助</a>
                <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">隐私</a>
                <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">条款</a>
              </div>-->
      <div class="copyright">
        Copyright &copy;2021 北京乐码仕智能科技有限公司版权所有<a href="#" target="_blank"></a>
      </div>
    </div>

  </div>
</template>

<script>
  import RouteView from "@lone/lone-vue/src/components/layouts/RouteView"
  import { mixinDevice } from '@lone/lone-vue/src/utils/mixin.js'

  export default {
    name: "LoginLayout",
    components: { RouteView },
    mixins: [mixinDevice],
    data () {
      return {
        systemName:`${window._CONFIG['Lone_Name']}`
      }
    },
    mounted () {
      document.body.classList.add('loginLayout')
    },
    beforeDestroy () {
      document.body.classList.remove('loginLayout')
    },
  }
</script>

<style lang="scss" scoped>
  #loginLayout.user-layout-wrapper {
    height: 100%;
    background: url("./bg.png") no-repeat center center;
    background-size: cover;
    .mask-bg {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(0,0,0,0.6);
    }
    .layout-center {
      width: 500px;
      .logo-box {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 32px;
        color: #eee;
        margin-bottom: 30px;
        .title {
          padding-left: 20px;
        }
      }
      .con {
        background-color: rgba(255,255,255,0.4);
        border-radius: 10px;
        padding: 50px 40px 30px;
      }
    }



    .footer {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 40px;
      line-break: 40px;
      padding: 0 30px;
      text-align: center;
      color: #ddd;
      text-shadow: 1px 1px #666;
    }
  }
</style>